<script type="text/javascript" charset="utf-8" >

$(function(){
	
	var url_contact_us =  "<?=site_url(); ?>index.php";
	
	// Define submit form
	$('.contact_form >form').submit(function(){
	
		var action_url = 'home/view/6';
		var url = url_contact_us + '/' +  action_url;
		var data = $(this).serialize();
		
	
		$.post(
			url,
			data,
			function(data){
				if (data != null)
				{
					$('.right').html(data);
					return;
				}
				
			},
			'html'
		);		
		
		return false;
	});
	
});



</script>

<div class="info">
	<?=isset($contact_content)? $contact_content: ""?>
</div>
<div class="contact" >
	<p class="title"><?=$this->lang->line('lang.i18n.messages.form.contact_info');?></p>
	<div class="contact_form">
		
		<?= isset($message)? $message: "";?>
		
		<?= form_open('') ?>
		
		<?=validation_errors('<div style="color:red" class="error">', '</div>'); ?>
		
		<div class="col1">
			<?=$this->lang->line('lang.i18n.messages.form.name');?>
			<span style="color:#F00">*</span>: 
		</div>
		
		<div class="col2"><input name="name" id="name" type="text" size="50"  /></div>
		
		<div class="col1">
			<?=$this->lang->line('lang.i18n.messages.form.address');?>: 
		</div>
		
		<div class="col2"><input name="address" id="address" type="text" size="55" /></div>
		
		<div class="col1">
			<?=$this->lang->line('lang.i18n.messages.form.email');?>
			<span style="color:#F00">*</span>: 
		</div>
			
		<div class="col2"><input name="email" id="email" type="text" size="60" /></div>
		
		<div class="col1">
			<?=$this->lang->line('lang.i18n.messages.form.phone');?>: 
		</div>
		
		<div class="col2"><input name="phone" id="email" type="text" size="65" /></div>
		
		<div class="col1">
			<?=$this->lang->line('lang.i18n.messages.form.comment');?><span style="color:#F00">*</span>: 
		</div>	
		
		<div class="col2 textarea">
		<textarea name="content" id="content" cols="60" rows="8"></textarea>
		</div>
		
		<div class="col1">
		<!--
			<?php //echo $this->lang->line('lang.i18n.messages.form.captcha');?>
		<span style="color:#F00">*</span>: 
		-->
		</div>
		<div class="col2 textarea">
			<?php 
			//$this->load->helper('captcha');
			//$captcha = new SimpleCaptcha();
			?>
			<!--
			<img src="public/captcha.php" id="captcha" />
			<input type="text" name="captcha" id="captcha-form" />
			-->
			<!--
			<a href="#" onclick="
    document.getElementById('captcha').src='?'+Math.random();
    document.getElementById('captcha-form').focus();"
    id="change-image">Not readable? Change text.</a><br/><br/>
			-->
		</div>
		
		<div class="col3">
			<input type="submit" class="form_bt" value="<?=$this->lang->line('lang.i18n.messages.form.send');?>" />
			<input type="reset" class="form_bt" value="<?=$this->lang->line('lang.i18n.messages.form.reset');?>" />
		</div>
		
		<?=form_close() ?>
		
		<div style="clear:both"></div>

	</div>
</div>
